package com.cy.ppj.comm.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @description: mongodb 参数
 * @author: Ocean
 * @create: 2018-07-17 09:55
 **/
@Component
@ConfigurationProperties(prefix="mongodb.pool")
@Data
public class MongodbPoolProperties {

    private String database;

    private List<String> hosts;

    private List<Integer> ports;

    private String replicaSet;

    private String username;

    private String password;

    private String authenticationDatabase;

    /** 最小连接数 */
    private Integer minConnectionsPerHost;

    /** 连接数 */
    private Integer connectionsPerHost;
}
